add_library( mpiHelpers "" )

target_sources( mpiHelpers PRIVATE
	mpiH_Comm.hpp
	mpiHelpers.hpp
	mpiH_Func.cpp
	mpiH_Func.hpp
	mpiH_Func.tpp
	mpiH_Init.hpp
	mpiH_Win.hpp
)

target_link_libraries( mpiHelpers PUBLIC
	util
	MPI::MPI_CXX
)

target_compile_definitions( mpiHelpers PUBLIC 
	-DOMPI_SKIP_MPICXX
	_MPI # analogous to _OPENMP, to allow check whether MPI exists.
)

target_include_directories( mpiHelpers PUBLIC
	${CMAKE_CURRENT_SOURCE_DIR}
)